//
//  WFDiscoverTVC.swift
//  WangFangWeiBo
//
//  Created by 王方 on 16/7/9.
//  Copyright © 2016年 wf. All rights reserved.
//

import UIKit

class WFDiscoverTVC: WFVisitorTVC {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        if isLogin{
            setUpUI()
        }else{
            visitorView?.loadVisitorinfo("登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过", imgName: "visitordiscover_image_message")
        }
        
        
    }

    private func setUpUI(){
        //自定义tabbaritem来重写set方法,替换底部的view
        let searchView = WFDiscoverySearchView.searchView()
        //此句是为了清掉searchview的颜色
        searchView.backgroundColor = UIColor.clearColor()
        searchView.width = self.view.width
        print(searchView.width)
        navigationItem.titleView = searchView
        tabBarItem.badgeValue = "kimoji"
        
    }
    
    
   

}
